package com.gzhryc.shared_device.oem.code.member;

import com.gzhryc.common.StringTools;

public class LoginMember {

    private Long id;
    private String nickname;
    private String phone;
    private Integer type;
    private String appId;
    private String openId;

    private String loginToken;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getLoginToken() {
        return loginToken;
    }

    public void setLoginToken(String loginToken) {
        this.loginToken = loginToken;
    }

    public String getFullName(){
        if(StringTools.isNotBlank(this.phone)) {
            return this.nickname + "(" + this.phone + ")";
        }else{
            return this.nickname;
        }
    }
}
